/**
 * Copyright (C), 2020, JieYi Software System Co., Ltd.
 * All rights reserved.
 * FileName:       MdmsConsts.java
 *
 * @Description:
 * @author: feiwe
 * Modification History:
 * Date         Author        Version        Discription
 * -------------------------------------------------------
 * 2020/11/13      feiwe                         add
 */


package com.fengwei.util;

public class MdmsConsts {

    /**
     * 用户状态
     */
    public static final String USER_STATUS_0 = "0";
    public static final String USER_STATUS_1 = "1";

    /**
     * 部门角色类型
     * 0-不开启
     * 1-GoogleAuthenticator认证
     * 2-短信认证
     */
    public static final String MFA_FLAG_0 = "0";
    public static final String MFA_FLAG_1 = "1";
    public static final String MFA_FLAG_2 = "2";

    /**
     * 登录时用户名密码认证后操作
     * 0-认证通过，直接登录
     * 10-需要进行GoogleAuthenticator绑定
     * 11-还需要进行GoogleAuthenticator认证
     * 2-还需要进行短信认证
     */
    public static final String ACTION_AFT_AUTHUSER_LOGIN_0 = "0";
    public static final String ACTION_AFT_AUTHUSER_LOGIN_10 = "10";
    public static final String ACTION_AFT_AUTHUSER_LOGIN_11 = "11";
    public static final String ACTION_AFT_AUTHUSER_LOGIN_2 = "2";

    /**
     * 部门角色类型
     * 0-普通用户
     * 1-DBA
     * 99-管理员
     */
    public static final String USER_TYPE_0 = "0";
    public static final String USER_TYPE_1 = "1";
    public static final String USER_TYPE_99 = "99";

    /**
     * 申请状态
     * 0-申请
     * 1-审核通过
     * 2-拒绝
     */
    public static final short APPLY_STATUS_0 = 0;
    public static final short APPLY_STATUS_1 = 1;
    public static final short APPLY_STATUS_2 = 2;

    /**
     * 执行状态
     * 0-未执行
     * 1-执行成功
     * 2-执行失败
     */
    public static final short RUN_STATUS_0 = 0;
    public static final short RUN_STATUS_1 = 1;
    public static final short RUN_STATUS_2 = 2;

}
